import request from '@/utils/request'

export default {
    removeById(videoId) {
        return request({
            url: `/eduvod/video/${videoId}`,
            method: 'delete'
        })
    },
    addVideo(eduVideo) {
        return request({
            url: `/serviceedu/video/addVideo`,
            method: 'post',
            data: eduVideo
        })
    },
    getVideoInfo(id) {
        return request({
            url: `/serviceedu/video/getVideoInfo/${id}`,
            method: 'get'
        })
    },
    updateVideo(eduVideo) {
        return request({
            url: `/serviceedu/video/updateVideo`,
            method: 'post',
            data: eduVideo
        })
    },
    delVideoInfo(id) {
        return request({
            url: `/serviceedu/video/${id}`,
            method: 'delete'
        })
    },
}
